package asf.core
{
	import com.netoleal.utils.XMLUtils;
	
	import flash.utils.*;
	
	dynamic internal class LanguageDictionary extends Proxy
	{
		private var data:Object; 
		
		public function LanguageDictionary( XMLData:Array = null )
		{
			var arg:XML;
			
			data = new Object( );
			XMLData = [ ].concat( XMLData );
			
			for each( arg in XMLData )
			{
				data = XMLUtils.toObject( arg, data );
			}
		}
		
		override flash_proxy function getProperty( name:* ):*
		{
			return data[ name ];
		}
	}
}